x86/hvm: Always return the linear address from hvm_virtual_to_linear_addr()
authorAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 4 May 2016 13:52:24 +0000 (14:52 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 10 May 2016 17:08:48 +0000 (18:08 +0100)
commit60935158cbf74f4cd6f69190ced9be0391cfa506
tree2d7e025938ed69b451a7ee6f64b9e0b3b48cc437
parentfdb9a18698c9ab8e8e8e875f20184b4aa5d62825
x86/hvm: Always return the linear address from hvm_virtual_to_linear_addr()

Some callers need the linear address (with appropriate segment base), whether
or not the limit or canonical check succeeds.

While modifying the function, change the return type to bool_t to match its
semantics.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Release-acked-by: Wei Liu <wei.liu2@citrix.com>
xen/arch/x86/hvm/hvm.c
xen/include/asm-x86/hvm/hvm.h